package client;

import com.mysql.jdbc.Connection;

import java.sql.ResultSet;
import java.util.LinkedList;

public class Cmodel {
    private static Cmodel me=null;
    public static Cmodel getMe(){
        if(me==null)
            me=new Cmodel();
        return me;
    }
    private static int cId=0;
    private LinkedList<String> rst=null;//利用
    private String identity="";//"teacher","student","dba"
    private Cmodel(){

    }

    public static void setcId(int icid){
        cId=icid;
    }//静态为cId提供值
    public static int getcId(){
        return cId;
    }
    public void setIdentity(String iden){
        identity=iden;
    }
    public String getIdentity(){
        return identity;
    }
    public void setRst(LinkedList<String> irst){
        rst=irst;
        System.out.println("INFOS:");
        for(int i=0;i<rst.size();i+=1){
            System.out.println(rst.get(i));
        }
    }
    public LinkedList<String> getRst(){
        return rst;
    }


}
